package com.cskaoyan.market.service.admin;

import com.cskaoyan.market.db.domain.MarketAdmin;
import com.cskaoyan.market.db.domain.MarketUser;
import org.apache.shiro.session.Session;
import org.springframework.validation.BindingResult;

import java.util.List;

/**
 * @Author 远志 zhangsong@cskaoyan.onaliyun.com
 * @Date 2024/5/4 9:26
 * @Version 1.0
 */
public interface MarketAdminService {
    //MarketAdmin login(String username, String password);

    List<MarketAdmin> list(Integer limit, Integer page, String username, String sort, String order);

    MarketAdmin create(MarketAdmin marketAdmin);

    Boolean update(MarketAdmin marketAdmin);

    MarketAdmin updatePassword(MarketAdmin marketAdmin, String oldPassword,BindingResult bindingResult);


    MarketAdmin delete(MarketAdmin marketAdmin);

    MarketAdmin getByUsername(String username);

    MarketAdmin login(MarketAdmin marketAdmin);

    MarketAdmin logout(Session session);

    MarketAdmin selectById(String roleId);
}
